package com.woniu.user.common;


import com.woniu.result.ResultCode;

public enum UserException implements ResultCode {

    DEMO_CODE(300, "DEMO_CODE 请删除"),
    ACCOUNT_ERROR(10001,"ACCOUNT_ERROR 账号错误"),

    ACCOUNT_STATE_EXCEPTION(10002,"ACCOUNT_STATE_EXCEPTION 账号状态异常"),
    PASSWORD_ERROR(10003,"PASSWORD_ERROR 密码错误"),
    SMSCODE_ISEXSIT(10004,"SMSCODE_ISEXSIT 验证码已存在"),
    SMSCODE_NO_ISEXSIT(10005,"SMSCODE_NO_ISEXSIT 验证码不存在"),
    SMSCODE_ERROR(10006,"SMSCODE_ERROR 验证码错误"),
    PASSWORD_OUT_OF_LINE(10007,"PASSWORD_OUT_OF_LINE 两次密码不一致"),
    PHONE_ISEXSIT(10008,"PHONE_ISEXSIT 手机号已存在"),
    ACCOUNT_NOT_EXIST(10009,"ACCOUNT_NOT_EXIST 用户不存在")
    ;

    private int code;
    private String message;

    private UserException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
